package org.synclib.model;

public class AddChange<T> extends AbstractChange<T> {

	public AddChange(String objectUUID, String propertyName, T newValue) {
		super(objectUUID, propertyName, null, newValue);
	}

	public void setOldValue(T oldValue) {
		throw new UnsupportedOperationException(
				"The old value of an AddChange can only be null.");
	};
	
	@Override
	public T getOldValue() {
		return null;
	}
}
